package lv.servidordisqueria.domain;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import lv.mensajeriadisqueria.idomain.IDomain;

import org.hibernate.annotations.Type;

@MappedSuperclass
public abstract class Domain implements IDomain {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2009860755264980873L;

	private Boolean habilitado = true;
		
	public Domain() {
		habilitado = true;
	}

	@Type(type = "lv.dataaccess.util.DBBooleanValue")
	@Column(name = "HABILITADO")
	@Override
	public Boolean getHabilitado() {
		return habilitado;
	}

	@Override
	public void setHabilitado(Boolean habilitado) {
		this.habilitado = habilitado;
	}
}